<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.yaodian100.crm.workflow.entity.WorkFlowNode" %>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<c-rt:if test="${!empty param.id}">
<c-rt:set var="mia" value="${pu:get('com.yaodian100.crm.cs.entity.MustInquireAnswer', pu:toLong(param.id))}"/>
</c-rt:if>
<script>
$(document).ready(function(){
	$('#submit_button').click(function(){
		var form;

		doAR('<%=application.getContextPath() %>/cs/mustInquire/updateAnswer.do', 'dialog', 'theForm', function(){
			//doAR('<%=application.getContextPath() %>/cs/mustInquire/page.do?iamlazy=listAnswer&miId=${param.miId}','miaList')
			}
			);
	});
});
</script>
<h1>必问问题回答</h1>

<c-rt:if test="${param.operation=='saved'}">
已储存异动
</c-rt:if>
<form method="post" id="theForm" name="theForm">
<input type="hidden" name="operation" value="saved"/>
<input type="hidden" name="miId" value="${param.miId }"/>
<table class="tb-data" width="100%">
<tr><th width="130px">ID</th><td>${mia.id}<input type="hidden" name="id" value="${mia.id }"/></td></tr>
<tr><th width="130px">描述</th><td><input type="text" name="description" value="${mia.description }"/></td></tr>

	<tr>
	<th></th><td><input type="button" id="submit_button" value="送出"/>
	<input type="reset" value="重设"/>
	<input type="button" value="回清单页" onclick="doAR('<%=application.getContextPath() %>/cs/mustInquire/page.do?iamlazy=listAnswer&miId=${param.miId}', 'dialog')"/>
	
	</td>
	</tr>
	
	</table>
</form>
	